import request from "@/utils/request";
export function login(username, password) {
  return request({
    url: "/account/login",
    method: "post",
    data: {
      username,
      password
    }
  });
}

export function userInfo() {
  return request({
    url: "/admin/account/info",
    method: "get"
  });
}

export function updateUserInfo(info) {
  return request({
    url: "/admin/account/info",
    method: "put",
    data: info
  });
}
